package com.youlu.campus.activity.entity;

import com.youlu.campus.activity.enums.ActivityLotteryPrizeType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.time.LocalDateTime;

/**
 * 活动抽奖奖品 实体类
 *
 * @Description: ActivityPrize
 * @Date 2025/7/31
 * @module ActivityPrize
 * @author: su
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(collection = "activity_lottery_prize")
public class ActivityLotteryPrize {

    @Id
    private String id;

    /**
     * 奖品名称
     */
    private String prizeName;

    /**
     * 奖品图片URL
     */
    private String prizeImg;

    /**
     * ActivityLotteryPrizeType  奖品类型  奖品类型：0-未中奖 1-实物，2-虚拟物品，3-贡献值等
     */
    private Integer prizeType = ActivityLotteryPrizeType.NO.getType();


    /**
     * 奖品描述
     */
    private String description;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

    /**
     * 是否删除
     */
    @Indexed
    private Boolean deleted = false;

}
